home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 November: Tool Chest / Dev.CD Nov 94.toast / Sample Code / MoreFiles 1.2.1 / MoreFiles Reference 1.2.1 / MoreFiles Reference 1.2.1.rsrc / WFMT_234_a157 < prev    next >
Unknown  |  1994-08-10  |  2.0 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


This file was not able to be converted.
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert Jesper Olsen Module (music/jesperOlsen) magic Supported
1% dexvert TTComp Archive (archive/ttcomp) fallback Supported
100% file TTComp archive data, binary, 2K dictionary default (weak)
99% file data default
100% TrID TTComp archive compressed (bin-2K) default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 05 00 01 00 00 00 1a | 00 00 00 00 00 00 00 1a |........|........|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 05 00 05 00 00 |........|........|
|00000030| 00 22 00 00 02 7f 00 00 | 00 22 61 31 35 37 00 00 |."......|."a157..|
|00000040| 4e 16 00 00 20 19 00 00 | 00 00 00 00 00 00 00 00 |N... ...|........|
|00000050| 00 00 08 47 65 74 44 69 | 72 49 44 00 00 06 00 00 |...GetDi|rID.....|
|00000060| 00 00 00 c1 00 00 02 80 | 00 00 00 c1 00 00 00 14 |........|........|
|00000070| 03 c1 00 28 05 7e 00 ff | 00 00 00 00 7f ff 0f a8 |...(.~..|........|
|00000080| 00 00 00 00 4e 1c 00 00 | 00 09 00 00 00 04 00 04 |....N...|........|
|00000090| ff fc ff fa 00 04 00 04 | ff fc ff fc 00 00 00 00 |........|........|
|000000a0| 00 00 00 00 83 00 0b 40 | 10 6b 53 63 72 65 65 6e |.......@|.kScreen|
|000000b0| 41 50 49 2f 31 39 39 39 | 36 00 06 47 65 6e 65 76 |API/1999|6..Genev|
|000000c0| 61 00 00 67 70 61 73 63 | 61 6c 20 4f 53 45 72 72 |a..gpasc|al OSErr|
|000000d0| 20 47 65 74 44 69 72 49 | 44 28 73 68 6f 72 74 20 | GetDirI|D(short |
|000000e0| 76 52 65 66 4e 75 6d 2c | 20 6c 6f 6e 67 20 64 69 |vRefNum,| long di|
|000000f0| 72 49 44 2c 20 53 74 72 | 69 6e 67 50 74 72 20 6e |rID, Str|ingPtr n|
|00000100| 61 6d 65 2c 20 6c 6f 6e | 67 20 2a 74 68 65 44 69 |ame, lon|g *theDi|
|00000110| 72 49 44 2c 20 42 6f 6f | 6c 65 61 6e 20 2a 69 73 |rID, Boo|lean *is|
|00000120| 44 69 72 65 63 74 6f 72 | 79 29 3b 00 00 00 06 00 |Director|y);.....|
|00000130| 00 00 00 00 95 00 00 02 | 81 00 00 00 95 00 00 00 |........|........|
|00000140| 00 03 c1 00 14 05 7e 00 | ff 00 00 00 00 7f ff 0f |......~.|........|
|00000150| a8 00 00 00 00 4e 1d 00 | 00 00 09 00 00 00 04 00 |.....N..|........|
|00000160| 04 ff fc ff fa 00 04 00 | 04 ff fc ff fc 00 00 00 |........|........|
|00000170| 00 00 00 00 00 83 00 0b | 40 14 6b 53 63 72 65 65 |........|@.kScree|
|00000180| 6e 4f 6e 65 4c 69 6e 65 | 2f 31 39 39 39 37 00 06 |nOneLine|/19997..|
|00000190| 47 65 6e 65 76 61 00 00 | 37 47 65 74 20 74 68 65 |Geneva..|7Get the|
|000001a0| 20 64 69 72 65 63 74 6f | 72 79 20 49 44 20 6e 75 | directo|ry ID nu|
|000001b0| 6d 62 65 72 20 6f 66 20 | 74 68 65 20 64 69 72 65 |mber of |the dire|
|000001c0| 63 74 6f 72 79 20 73 70 | 65 63 69 66 69 65 64 2e |ctory sp|ecified.|
|000001d0| 00 00 00 06 00 00 00 00 | 00 44 00 00 02 82 00 00 |........|.D......|
|000001e0| 00 44 00 00 00 00 02 6b | 04 40 02 6c 01 00 00 00 |.D.....k|.@.l....|
|000001f0| 00 00 00 01 0f f1 00 00 | 00 00 00 00 00 00 00 0c |........|........|
|00000200| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000210| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000220| 00 00 00 00 00 00 00 06 | 00 00 00 00 00 79 00 00 |........|.....y..|
|00000230| 02 83 00 00 00 79 00 00 | 00 00 02 6b 02 28 03 c1 |.....y..|...k.(..|
|00000240| 00 ff 00 00 00 00 7f ff | 0f a8 00 00 00 00 4e 16 |........|......N.|
|00000250| 00 00 00 09 00 00 00 04 | 00 04 ff fc ff fa 00 04 |........|........|
|00000260| 00 04 ff fc ff fc 00 00 | 00 00 00 00 00 00 83 00 |........|........|
|00000270| 0b 40 0b 6c 69 6e 6b 73 | 2f 31 39 39 39 30 00 06 |.@.links|/19990..|
|00000280| 4d 6f 6e 61 63 6f 00 00 | 0e 61 31 35 37 2c 47 65 |Monaco..|.a157,Ge|
|00000290| 74 44 69 72 49 44 0d 00 | 16 00 01 00 00 00 00 00 |tDirID..|........|
|000002a0| 10 00 0c 00 01 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002b0| 06 00 00 00 00 05 68 00 | 00 02 84 00 00 05 68 00 |......h.|......h.|
|000002c0| 00 00 00 00 00 75 30 02 | 6b 01 ff 00 00 00 00 7f |.....u0.|k.......|
|000002d0| ff 0f a8 00 00 00 00 4e | 1f 00 00 00 09 00 00 00 |.......N|........|
|000002e0| 04 00 04 ff fc ff fa 00 | 04 00 04 ff fc ff fc 00 |........|........|
|000002f0| 00 00 00 00 00 00 00 83 | 00 0b 40 0a 62 6f 64 79 |........|..@.body|
|00000300| 2f 31 39 39 39 39 00 06 | 4d 6f 6e 61 63 6f 00 04 |/19999..|Monaco..|
|00000310| fe 70 61 73 63 61 6c 20 | 4f 53 45 72 72 20 47 65 |.pascal |OSErr Ge|
|00000320| 74 44 69 72 49 44 28 73 | 68 6f 72 74 20 76 52 65 |tDirID(s|hort vRe|
|00000330| 66 4e 75 6d 2c 20 6c 6f | 6e 67 20 64 69 72 49 44 |fNum, lo|ng dirID|
|00000340| 2c 20 53 74 72 69 6e 67 | 50 74 72 20 6e 61 6d 65 |, String|Ptr name|
|00000350| 2c 20 6c 6f 6e 67 20 2a | 74 68 65 44 69 72 49 44 |, long *|theDirID|
|00000360| 2c 20 42 6f 6f 6c 65 61 | 6e 20 2a 69 73 44 69 72 |, Boolea|n *isDir|
|00000370| 65 63 74 6f 72 79 29 3b | 0d 0d 54 68 65 20 47 65 |ectory);|..The Ge|
|00000380| 74 44 69 72 49 44 20 66 | 75 6e 63 74 69 6f 6e 20 |tDirID f|unction |
|00000390| 67 65 74 73 20 74 68 65 | 20 64 69 72 65 63 74 6f |gets the| directo|
|000003a0| 72 79 20 49 44 20 6e 75 | 6d 62 65 72 20 6f 66 20 |ry ID nu|mber of |
|000003b0| 74 68 65 20 64 69 72 65 | 63 74 6f 72 79 0d 73 70 |the dire|ctory.sp|
|000003c0| 65 63 69 66 69 65 64 2e | 20 20 49 66 20 61 20 66 |ecified.| If a f|
|000003d0| 69 6c 65 20 69 73 20 73 | 70 65 63 69 66 69 65 64 |ile is s|pecified|
|000003e0| 2c 20 74 68 65 6e 20 74 | 68 65 20 70 61 72 65 6e |, then t|he paren|
|000003f0| 74 0d 64 69 72 65 63 74 | 6f 72 79 20 6f 66 20 74 |t.direct|ory of t|
|00000400| 68 65 20 66 69 6c 65 20 | 69 73 20 72 65 74 75 72 |he file |is retur|
|00000410| 6e 65 64 20 61 6e 64 20 | 69 73 44 69 72 65 63 74 |ned and |isDirect|
|00000420| 6f 72 79 20 69 73 20 66 | 61 6c 73 65 2e 20 20 49 |ory is f|alse. I|
|00000430| 66 0d 61 20 64 69 72 65 | 63 74 6f 72 79 20 69 73 |f.a dire|ctory is|
|00000440| 20 73 70 65 63 69 66 69 | 65 64 2c 20 74 68 65 6e | specifi|ed, then|
|00000450| 20 74 68 61 74 20 64 69 | 72 65 63 74 6f 72 79 27 | that di|rectory'|
|00000460| 73 20 49 44 20 6e 75 6d | 62 65 72 20 69 73 0d 72 |s ID num|ber is.r|
|00000470| 65 74 75 72 6e 65 64 20 | 61 6e 64 20 69 73 44 69 |eturned |and isDi|
|00000480| 72 65 63 74 6f 72 79 20 | 69 73 20 74 72 75 65 2e |rectory |is true.|
|00000490| 0d 57 41 52 4e 49 4e 47 | 3a 20 56 6f 6c 75 6d 65 |.WARNING|: Volume|
|000004a0| 20 6e 61 6d 65 73 20 6f | 6e 20 74 68 65 20 4d 61 | names o|n the Ma|
|000004b0| 63 69 6e 74 6f 73 68 20 | 61 72 65 20 2a 6e 6f 74 |cintosh |are *not|
|000004c0| 2a 20 75 6e 69 71 75 65 | 20 2d 2d 20 4d 75 6c 74 |* unique| -- Mult|
|000004d0| 69 70 6c 65 0d 6d 6f 75 | 6e 74 65 64 20 76 6f 6c |iple.mou|nted vol|
|000004e0| 75 6d 65 73 20 63 61 6e | 20 68 61 76 65 20 74 68 |umes can| have th|
|000004f0| 65 20 73 61 6d 65 20 6e | 61 6d 65 2e 20 46 6f 72 |e same n|ame. For|
|00000500| 20 74 68 69 73 20 72 65 | 61 73 6f 6e 2c 20 74 68 | this re|ason, th|
|00000510| 65 20 75 73 65 20 6f 66 | 20 61 0d 76 6f 6c 75 6d |e use of| a.volum|
|00000520| 65 20 6e 61 6d 65 20 6f | 72 20 66 75 6c 6c 20 70 |e name o|r full p|
|00000530| 61 74 68 6e 61 6d 65 20 | 74 6f 20 69 64 65 6e 74 |athname |to ident|
|00000540| 69 66 79 20 61 20 73 70 | 65 63 69 66 69 63 20 76 |ify a sp|ecific v|
|00000550| 6f 6c 75 6d 65 20 6d 61 | 79 20 6e 6f 74 0d 70 72 |olume ma|y not.pr|
|00000560| 6f 64 75 63 65 20 74 68 | 65 20 72 65 73 75 6c 74 |oduce th|e result|
|00000570| 73 20 79 6f 75 20 65 78 | 70 65 63 74 2e 20 20 49 |s you ex|pect. I|
|00000580| 66 20 6d 6f 72 65 20 74 | 68 61 6e 20 6f 6e 65 20 |f more t|han one |
|00000590| 76 6f 6c 75 6d 65 20 68 | 61 73 20 74 68 65 20 73 |volume h|as the s|
|000005a0| 61 6d 65 0d 6e 61 6d 65 | 20 61 6e 64 20 61 20 76 |ame.name| and a v|
|000005b0| 6f 6c 75 6d 65 20 6e 61 | 6d 65 20 6f 72 20 66 75 |olume na|me or fu|
|000005c0| 6c 6c 20 70 61 74 68 6e | 61 6d 65 20 69 73 20 75 |ll pathn|ame is u|
|000005d0| 73 65 64 2c 20 74 68 65 | 20 46 69 6c 65 20 4d 61 |sed, the| File Ma|
|000005e0| 6e 61 67 65 72 0d 63 75 | 72 72 65 6e 74 6c 79 20 |nager.cu|rrently |
|000005f0| 75 73 65 73 20 74 68 65 | 20 66 69 72 73 74 20 76 |uses the| first v|
|00000600| 6f 6c 75 6d 65 20 69 74 | 20 66 69 6e 64 73 20 77 |olume it| finds w|
|00000610| 69 74 68 20 61 20 6d 61 | 74 63 68 69 6e 67 20 6e |ith a ma|tching n|
|00000620| 61 6d 65 20 69 6e 20 74 | 68 65 0d 76 6f 6c 75 6d |ame in t|he.volum|
|00000630| 65 20 71 75 65 75 65 2e | 0d 0d 76 52 65 66 4e 75 |e queue.|..vRefNu|
|00000640| 6d 20 20 20 20 20 20 20 | 20 20 69 6e 70 75 74 3a |m | input:|
|00000650| 20 20 56 6f 6c 75 6d 65 | 20 73 70 65 63 69 66 69 | Volume| specifi|
|00000660| 63 61 74 69 6f 6e 2e 0d | 64 69 72 49 44 20 20 20 |cation..|dirID |
|00000670| 20 20 20 20 20 20 20 20 | 69 6e 70 75 74 3a 20 20 | |input: |
|00000680| 44 69 72 65 63 74 6f 72 | 79 20 49 44 2e 0d 6e 61 |Director|y ID..na|
|00000690| 6d 65 20 20 20 20 20 20 | 20 20 20 20 20 20 69 6e |me | in|
|000006a0| 70 75 74 3a 20 20 50 6f | 69 6e 74 65 72 20 74 6f |put: Po|inter to|
|000006b0| 20 6f 62 6a 65 63 74 20 | 6e 61 6d 65 2c 20 6f 72 | object |name, or|
|000006c0| 20 6e 69 6c 20 77 68 65 | 6e 20 64 69 72 49 44 0d | nil whe|n dirID.|
|000006d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000006e0| 20 20 20 20 20 20 20 20 | 73 70 65 63 69 66 69 65 | |specifie|
|000006f0| 73 20 61 20 64 69 72 65 | 63 74 6f 72 79 20 74 68 |s a dire|ctory th|
|00000700| 61 74 27 73 20 74 68 65 | 20 6f 62 6a 65 63 74 2e |at's the| object.|
|00000710| 0d 74 68 65 44 69 72 49 | 44 20 20 20 20 20 20 20 |.theDirI|D |
|00000720| 20 6f 75 74 70 75 74 3a | 20 49 66 20 74 68 65 20 | output:| If the |
|00000730| 6f 62 6a 65 63 74 20 69 | 73 20 61 20 66 69 6c 65 |object i|s a file|
|00000740| 2c 20 74 68 65 6e 20 69 | 74 73 20 70 61 72 65 6e |, then i|ts paren|
|00000750| 74 20 64 69 72 65 63 74 | 6f 72 79 0d 20 20 20 20 |t direct|ory. |
|00000760| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000770| 20 20 20 20 49 44 2e 20 | 49 66 20 74 68 65 20 6f | ID. |If the o|
|00000780| 62 6a 65 63 74 20 69 73 | 20 61 20 64 69 72 65 63 |bject is| a direc|
|00000790| 74 6f 72 79 2c 20 74 68 | 65 6e 20 69 74 73 20 49 |tory, th|en its I|
|000007a0| 44 2e 0d 69 73 44 69 72 | 65 63 74 6f 72 79 20 20 |D..isDir|ectory |
|000007b0| 20 20 20 6f 75 74 70 75 | 74 3a 20 54 72 75 65 20 | outpu|t: True |
|000007c0| 69 66 20 6f 62 6a 65 63 | 74 20 69 73 20 61 20 64 |if objec|t is a d|
|000007d0| 69 72 65 63 74 6f 72 79 | 3b 20 66 61 6c 73 65 20 |irectory|; false |
|000007e0| 69 66 0d 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |if. | |
|000007f0| 20 20 20 20 20 20 20 20 | 20 20 20 6f 62 6a 65 63 | | objec|
|00000800| 74 20 69 73 20 61 20 66 | 69 6c 65 2e 0d 0d 0d 00 |t is a f|ile.....|
|00000810| 16 00 01 00 00 00 00 00 | 0b 00 09 00 04 00 00 00 |........|........|
|00000820| 09 00 00 00 00 00 00 | |....... | |
+--------+-------------------------+-------------------------+--------+--------+